#include <QtGui/QApplication>
#include <QTranslator>
#include <QSplashScreen>
#include <QPixmap>
#include "SOURCES/mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QTranslator translator;
    translator.load("french");
    a.installTranslator(&translator);

    QPixmap pixmap(":/IMAGES/RESSOURCES/IMAGES/splash.png");
    QSplashScreen splash(pixmap);
    splash.show();
    splash.showMessage("Loading, please wait...", Qt::AlignBottom | Qt::AlignLeft, Qt::white);

    MainWindow w;
    w.show();
    splash.finish(&w);

    return a.exec();
}
